<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2019/3/31
 * Time: 13:12
 */

namespace api\storage\validate;

use think\Validate;

class ClientValidate extends Validate
{
    protected $rule = [
        'type'=>'require',
        'host'=>'require',
        'logFile'=>'file'
    ];

    protected $message = [
        'type.require'=>'类型不能为空',
        'host.require'=>'host地址不能为空'
    ];

    protected $scene = [
        'checkVersion' =>['type','host'],
        'upload'=>['type','logFile']
    ];


}